package com.spboot.service.impl;

import com.spboot.entity.User;
import com.spboot.mapper.UserMapper;
import com.spboot.service.UserService;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author guocb
 * @since 2019-12-25
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {

	@Override
	public IPage<User> selectPageUser(IPage<User> page, Wrapper<User> paramWrapper) {
		return this.baseMapper.selectPageUser(page, paramWrapper);
	}

	@Override
	public List<String> selectUserPermission(String userCode) {
		return this.baseMapper.selectUserPermission(userCode);
	}

}
